import request from '@/utils/request'

// 查询列表
export function listEhActivitiesRelease(query) {
    return request({
        url: '/volunteer/api/release/list',
        method: 'post',
        data: query
    })
}

// 查询详细
export function getEhActivitiesRelease(ehpId) {
    return request({
        url: '/volunteer/api/release/activitieInfo/' + ehpId,
        method: 'get'
    })
}

// 新增
export function addEhActivitiesRelease(data) {
    return request({
        url: '/volunteer/api/release/save',
        method: 'post',
        data: data
    })
}

// 修改
export function updateEhActivitiesRelease(data) {
    return request({
        url: '/volunteer/api/release/update',
        method: 'post',
        data: data
    })
}

// 删除
export function delEhActivitiesRelease(ehpId) {
    return request({
        url: '/volunteer/api/release/delete/' + ehpId,
        method: 'delete'
    })
}
// 批量删除
// export function delEhActivitiesRelease(data) {
//     return request({
//         url: '/wx/ehactivitiesrelease/deleteBatch',
//         method: 'post',
//         data: data
//     })
// }
